package com.ext.aic.utils.device;

import android.os.Build;

import java.util.HashSet;
import java.util.Set;

public class DeviceModel {

    //不包含状态栏高度的设备（厂商+型号）
    private static Set<String> outStatusBarDevices = new HashSet<String>() {{
        add("xiaomi-m2006j10c");
        add("realme-rmx5055");
    }};

    private static String getDeviceTag() {
        return Build.MANUFACTURER.toLowerCase() + "-" + Build.MODEL.toLowerCase();
    }

    //在竖屏情况下，屏幕高度是否包含状态栏高度
    public static boolean hasStatusBarOffsetInScreen() {
        return !outStatusBarDevices.contains(getDeviceTag());
    }
}
